module.exports = (app) => {
    return class DemoController {
        constructor() {
            this.app = app
            this.config = app.config
        }
        async index(ctx) {
            ctx.body = {
                code: 0,
                msg: 'success',
                data: {
                    config: this.config
                }
            }
        }
    }
}
